<template>
    <el-header>
        <span @click="toggle">
            <el-icon-expand style="margin-right: 20px;height: 1em;" v-if="collapse"></el-icon-expand>
            <el-icon-fold style="height: 1em;" v-else></el-icon-fold>
        </span>

    </el-header>
</template>

<script lang="ts" setup>


const props = defineProps(['collapse'])
const emit = defineEmits(['update:collapse'])
const toggle = () => {
    //isCollapse.value = !isCollapse.value
    emit('update:collapse', !props.collapse)

}
</script>
<style lang="scss" scoped>

</style>
